package com.seculab.admin.web;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.seculab.admin.service.mail.MailService;

@Controller
public class MailController {

	@Autowired
	private MailService mailService;
	
	@RequestMapping("/mail")
	public String sendMail() throws Exception {
		Map<String, Object> params = new HashMap<String, Object>();
		mailService.send("", params);
		
		return "loginForm";
	}
}
